#ifndef __HASHMAP_INT_H__
#define __HASHMAP_INT_H__

#include<stdio.h>
#include<stdlib.h>

#define N 100

typedef int K;
typedef int V;
typedef struct entry_s_int
{
	K key;
	V val;
	struct entry_s_int* next;
}Entry_int;

typedef struct hashmap_s_int
{
	Entry_int* table[N];
}HashMap_int;

//API
HashMap_int* create_hashmap_int();
void destroy_hashmap_int(HashMap_int* map);
V hashmap_get_int(HashMap_int* map, K key);
V hashmap_put_int(HashMap_int* map, K key, V val);
V hashmap_delete_int(HashMap_int* map, K key);
int hash_int(K key);

#endif